<h1 class="title">User details</h1>

<table class="tabular details" style="width: 40%">
 <tr class="header">
  <th>Basics</th>
  <th></th>
 </tr> 
 <tr class="even_row">
  <td><strong>Username </strong></td>
  <td><%= @user.username %></td>
 </tr>
 <tr>
  <td><strong>Email </strong></td>
  <td><%= @user.email %></td>
 </tr>
 <tr class="even_row">
  <td><strong>First name </strong></td>
  <td><%= @user.first_name %></td>
 </tr>
 <tr>
  <td><strong>Last name </strong></td>
  <td><%= @user.last_name %></td>
  </tr>
 <tr class="even_row">
  <td><strong>Address </strong></td>
  <td><%= @user.address %></td>
  </tr>
 <tr>
  <td><strong>Phone </strong></td>
  <td><%= @user.phone %></td>
  </tr>
 <tr class="even_row">
  <td><strong>City </strong></td>
  <td><%= @user.city %></td>
  </tr> 
 <tr>
  <td><strong>State </strong></td>
  <td><%= @user.state %></td>
  </tr>
 <tr class="even_row">
  <td><strong>Country </strong></td>
  <td><%= @user.country %></td>
  </tr>
 <tr>
  <td><strong>Rights </strong></td>
  <td><%= @user.rights %></td>
 </tr>
 <tr class="even_row">
  <td><strong>Is active </strong></td>
  <td><%if @user.is_active %>Yes<% else %>No<% end %></td>
 </tr>
 <tr>
  <td><strong>Assigned projects</strong></td>
  <td>
   <% for assigned_project in @assigned_projects %>
     <%= link_to assigned_project.project.name, :controller => 'project', :action => 'show', :id => assigned_project.project_fk %>
   <% end %>  
  </div>

  </td>
</table> 
